{{include file="header.html"}}
	<div class="header loginhead">
		<div class="nav">
		    <div class="search return"><a href="javascript:history.go(-1);"></a></div>
		    <div class="title">登录</div>
		    <div class="right">
		        <a href="index.php?app=Login&act=register">注册</a>
		    </div>
		</div>
	</div>
	<div class="container login">
		<div class="loginbox" >
			<form action="">
				<div class="login_wrap">
					<span class="icon">
						<img src="{{$smarty.const.__APP__}}images/login.png" alt="">
					</span>
					<div class="input_text">
						<input type="text" placeholder="请输入手机号" id="name" name="tel" value="{{$tel}}">
					</div>
				</div>
				<div class="login_wrap">
					<span class="icon">
						<img src="{{$smarty.const.__APP__}}images/pw.png" alt="">
					</span>
					<div class="input_text">
						<input type="password" placeholder="请输入密码" id="pass" name="password">
					</div>
				</div>	
				<div class="foget">
					<a href="index.php?app=Login&act=getpassword">忘记密码？</a>
				</div>
				<div class="loginbtn">
					<a href="javascript:" onclick="login();">登录</a>
				</div>
				<!-- <div class="other">
					<div class="item"><span>第三方账号登录</span></div>
					<div class="type">
						<a href="javascript:" ><i class="qq"></i><span>QQ登录</span></a>
						<a href="javascript:"><i class="weixin"></i><span>微信登录</span></a>
					</div>
				</div> -->
				<script type="text/javascript">
				
				</script>
			</form>	
		</div>
	</div>
<script type="text/javascript">
	function login(){
		var params = $("form").serialize();
		$.post('{{"index.php?app=Login"|URL}}',params,function(result){
	        if(result.statusCode=='200'){
	        	ui.success(result.message);
	        	setTimeout(function(){
	        		if($.cookie('history_url')){
	        			var history_url = $.cookie('history_url');
	        			$.cookie('history_url','',{expires: null,path: "/"});
	        			document.location.href=history_url;
	        		}else
						location.href='{{"index.php?app=Index"|URL}}';
				},1000);
	        }else ui.error(result.message);
	    },'json');
	}
</script>
{{include file="footer.html"}}